<template>
  <div class="outer">
    <Tab title="美食">
      <img width="200" src="https://img2.baidu.com/it/u=2082735800,426564252&fm=253&fmt=auto&app=138&f=GIF?w=400&h=300" alt="" />
    </Tab>
    <Tab title="游戏">
      <ul>
        <li>LoL</li>
        <li>CF</li>
        <li>DNF</li>
      </ul>
    </Tab>
    <Tab title='电影'>
      <video width="200" src=""></video>
    </Tab>
  </div>
</template>

<script>
import { v4 as uuidv4 } from "uuid";

import Tab from "./components/Tab.vue";

export default {
  name: "App",
  data() {
    return {
      tabData: [
        { id: uuidv4(), title: "美食", list: ["火锅", "烧烤", "小龙虾"] },
        { id: uuidv4(), title: "游戏", list: ["LoL", "DNF", "CS", "Dota"] },
        {
          id: uuidv4(),
          title: "电影",
          list: ["独行月球", "智取威虎山", "绿皮书"],
        },
      ],
    };
  },
  components: {
    Tab,
  },
};
</script>

<style>
.outer {
  width: 800px;
  display: flex;
  justify-content: space-between;
}
</style>